package com.ck.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author linqiang
 * @date 2018/10/18 14:46
 */
@Controller
@RequestMapping(value = "")
public class IndexController {

    /**
     * 跳转至登录界面
     */
    @RequestMapping("/")
    public void goLogin(HttpServletRequest request, HttpServletResponse response) {
        try {
            response.sendRedirect(request.getContextPath() + "/web/goIndex");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
